home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_2
/
rnet107u.zip
/
MAILRUN.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-01-03
|
3KB
|
82 lines
echo off
cls
echo %0 Processing... %1 [Example batch for event]
rem ┌─────────────────────────────────────────────────────────────────────────┐
rem │ Sample MAILRUN.BAT file for executing RNET/Qmail/PCBoard based echo │
rem │ conferencing. This batch file should be executed daily or as often │
rem │ as needed to import/export mail to/from your host system. │
rem └─────────────────────────────────────────────────────────────────────────┘
if '%1'=='' goto BADID
goto MAIL
:BADID
echo ┌────────────────────────────────────────────────────────────────────────┐
echo │ Warning! This batch file requires the host packet ID as a parameter! │
echo └────────────────────────────────────────────────────────────────────────┘
echo Examples:
echo %0 FTL (for Faster-Than-Light as host)
echo %0 TRP (for The Right Place as host)
echo %0 CHEERS (for Cheers! SuperRegional as host)
echo %0 EXECNET (for Executive Network as host)
echo %0 started without host ID parameter! >> ERROR.LOG
goto ABORTMAIL
:MAIL
e:
cd \rnet
rem ┌─────────────────────────────────────────────────────────────────────────┐
rem │ Export mail which is for your host. Finds mail in conferences which │
rem │ needs to be sent up to host system. If the *.REP packet is present, │
rem │ RNET will automatically append new mail to the packet. │
rem └─────────────────────────────────────────────────────────────────────────┘
RNET EXPORT %1
rem ┌─────────────────────────────────────────────────────────────────────────┐
rem │ Send *.REP packet up to host and download *.QWK packet for importing. │
rem │ Replace this with your terminal program and script designed for this. │
rem │ Whatever your terminal program and script, if the REP packet is │
rem │ successfully uploaded, you MUST delete the REP packet or RNET will │
rem │ append tomorrows mail to the end! You may simply rename or move the │
rem │ REP packet also. │
rem └─────────────────────────────────────────────────────────────────────────┘
echo Removing any previous %1.QWK packets since they should not exist yet!
if exist %1.QWK erase %1.QWK > NUL
rem ┌─────────────────────────────────────┐
rem │ assumes script called (host_id).slc │
rem └─────────────────────────────────────┘
echo Calling host... using Telix script %1.slc [in e:\telix\]
cd \telix
telix -s%1
cd \rnet
rem ┌─────────────────────────────────────────────────────────────────────────┐
rem │ Now IMPORT any new mail aquired from the host (*.QWK) │
rem └─────────────────────────────────────────────────────────────────────────┘
if not exist %1.QWK goto ABORTMAIL
RNET IMPORT %1
rem ┌─────────────────────────────────────────────────────────────────────────┐
rem │ An error is reported if the QWK still exists after packet processing is │
rem │ completed. This assumes that you have KILLQWK=YES in your config. │
rem └─────────────────────────────────────────────────────────────────────────┘
if exist %1.QWK echo *** ERROR *** QWK packet still exists!
if exist %1.QWK echo *** ERROR *** QWK packet still exists! >>ERROR.LOG
:ENDOFMAIL
echo %0 Processing of %1 Completed..., returning to c:\pcb\ directory.
:ABORTMAIL
c:
cd\pcb